// factory/IUserFactory.java
package factory;

import user.User;

public interface IUserFactory {
    User createUser(String name, int userID);
}

// factory/AdminUserFactory.java
package factory;

        import user.AdminUser;
        import user.User;

public class AdminUserFactory implements IUserFactory {
    @Override
    public User createUser(String name, int userID) {
        return new AdminUser(name, userID);
    }
}

// factory/NormalUserFactory.java
package factory;

        import user.NormalUser;
        import user.User;

public class NormalUserFactory implements IUserFactory {
    @Override
    public User createUser(String name, int userID) {
        return new NormalUser(name, userID);
    }
}